#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.client.ui;

import java.util.List;

import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;
import ${package}.client.beans.Mail;

public class TwitterTweetPanel extends VerticalPanel {

	private Label myTweetLabel;
	
	public TwitterTweetPanel() {
		myTweetLabel = new Label("My Tweets:");
		myTweetLabel.addStyleName("myTweet");
		setWidth("100%");
	}

	public void initTwitterTweetPanel(){
		add(myTweetLabel);
		
	}
	public void addTweet(List<Mail> pTweets){
		for(Mail tweet:pTweets){
			TweetPanel tweetPanel = new TweetPanel(tweet);
			tweetPanel.initTweetPanel();
			add(tweetPanel);
		}
	}
	
	public void addTweet(Mail pTweet){
			TweetPanel tweetPanel = new TweetPanel(pTweet);
			tweetPanel.initTweetPanel();
			add(tweetPanel);
	}
	
}
